package com.sc.nft.task;

import com.sc.nft.service.InformationArticleService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
@Slf4j
public class ArticleTask {

    private final InformationArticleService informationArticleService;

    /**
     * 文章定时
     */
    @XxlJob("article")
    public void articleCrawler()  {
        informationArticleService.articleCrawler();
    }
}
